<template>
  <div>
    <form action="" title="订单详情">
      订单号:{{ orders.orderNumber }} 下单时间：{{ orders.ordderTime }}
    </form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      customer: {},
      orders: {},
      bed: {},
    };
  },
  created() {
    var id = this.$route.params.id;
    console.log(id);
    this.$axios({
      url: `http://localhost:8080/jiapei/orders/display/${id}`,
      method: "GET",
    }).then((res) => {
      this.orders = res.data.data.orders;
      console.log(res.data.data.orders);
      this.bed = res.data.data.bed;
      this.customer = res.data.data.customer;
    });
  },
};
</script>

<style>
</style>